using System;
using System.Collections.Generic;

namespace ColladaDotNet.SimpleMesh
{
	public class VertexBoneComparer : IComparer<VertexBone>
	{
		/// <summary>
		/// Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
		/// </summary>
		/// <returns>
		/// Value Condition Less than zerox is less than y.Zerox equals y.Greater than zerox is greater than y.
		/// </returns>
		/// <param name="y">The second object to compare.</param>
		/// <param name="x">The first object to compare.</param>
		public int Compare(VertexBone x, VertexBone y)
		{
			return Math.Sign(y.Weight - x.Weight);
		}
	}
}